from django.shortcuts import render
import datetime

# Create your views here.


def index(request):
    data = {
        "name": "zhangsan",
        "age": 63,
        "likes": ["coding", "reading", "game"],
        "address": {"city": "河南", "province": "郑州"},
        "stars": [["张三", "李四"], ["王五", "赵六"], ["孙七", "钱八"]],
        "dt":datetime.datetime.now(),
        "code":"<b>I 'm a best man</b>",
        "code2":"""<script>
            let a=3;
            while(a--){
                alert("hello world" + a);
            }

        </script>"""
    }
    return render(request, "index.html", data)

def block(request):
    return render(request,"block.html")


def child(request):
    return render(request,"child.html")